function route(handle,pathname,res){
   console.log("ROUTER.JS:router a request for "+pathname);
   if(typeof handle[pathname]=='function'){
 //   return handle[pathname]();
      console.log("debug---------------------------------if");
      handle[pathname](res);
   }else{
   	  console.log("debug---------------------------------else");
      console.log("ROUTER.JS:No request handler found for "+pathname);
 //   return "404 Not found";
      res.writeHead(200,{"Content-Type":"text/plain"});
      res.write("Hello world222");
      res.end();
   }
}

exports.route=route;
